package com.example.mapper;

import com.example.annotation.ShiroData;
import com.example.demo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;
@ShiroData
public interface UserMapper extends MySqlMapper<User>,Mapper<User> {

    User selectByUserId(Integer Id);

    @Select(value = "select * from user_info where user_name = #{name}")
    List<User> selectByUserName(String name);

    void batchInsert(@Param("list")List<User> list);

}
